package com.woniuxy.project.send.config.simple;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    /**
     * 创建并配置一个简单的消息队列
     *
     * @return Queue 返回配置好的队列实例，队列名称为"simple-queue"
     */
    @Bean
    public Queue queue() {
        return new Queue("simple-queue");
    }

}
